<form id="dsc_{% __suffix__ %}" class="discounts" method="post" enctype="multipart/form-data">
<input type="hidden" name="method" value="ApplyDiscounts" />
<input type="hidden" name="article" value="{%ifnot __suffix__ `all`%}{% __suffix__ %}{%endif%}" />
{%assign __applied__ ProductDiscounts < context%}
{%iterate __discounts__ as d%}
<div><input name="dsc[{% ItemId %}]" type="checkbox" <?php if (in_array($this->CurrentContext()->ItemId(),$this->__applied__)) echo 'checked'; ?>/>{% context %}</div>
{%iterate%}
<div class="btn-holder"><button onclick="javascript:submit();">{% i < `Apply`%}</button></div>
</form>